package com.zhang.builder02;

public class Test {
    public static void main(String[] args) {
        //服务员
        Worker worker = new Worker();
        //链式编程
        Product product = worker.getProduct();
        System.out.println(product.toString());

        Product product2 = worker.buildA("全家桶")
                .getProduct();
        System.out.println(product2.toString());
    }
}
